//package com.naiterui.ehp.bs.recommend.dao.impl;
//
//import java.util.List;
//
//import org.springframework.stereotype.Repository;
//
//import com.naiterui.common.repository.hibernate.DefaultBaseDaoImpl;
//import com.naiterui.ehp.bs.recommend.bean.RecomEsignPharmacist;
//import com.naiterui.ehp.bs.recommend.dao.IRecomEsignPharmacistDao;
//
///**
// * @author guoyongxiang
// * @date 2019-07-23 17:38
// * @since 1.0.0
// */
//@Repository
//public class RecomEsignPharmacistDaoImpl extends DefaultBaseDaoImpl<RecomEsignPharmacist, Long> implements IRecomEsignPharmacistDao {
//
//
//    @Override
//    public RecomEsignPharmacist findByPharmacistId(Long pharmacistId) {
//        List<RecomEsignPharmacist> list = super.find("from RecomEsignPharmacist where pharmacistId = ?", pharmacistId);
//        if (list != null && !list.isEmpty()) {
//            return list.get(0);
//        }
//        return null;
//    }
//
//    @Override
//    public RecomEsignPharmacist findByOpenId(String openId) {
//        List<RecomEsignPharmacist> list = super.find("from RecomEsignPharmacist where openId = ?", openId);
//        if (list != null && !list.isEmpty()) {
//            return list.get(0);
//        }
//        return null;
//    }
//
//
//    @Override
//    public RecomEsignPharmacist findByPharmacistIdAndStatus(Long pharmacistId, Integer status) {
//        List<RecomEsignPharmacist> list = super.find("from RecomEsignPharmacist where pharmacistId = ? and status = ?", pharmacistId, status);
//        if (list != null && !list.isEmpty()) {
//            return list.get(0);
//        }
//        return null;
//    }
//
//    @Override
//    public List<RecomEsignPharmacist> findAllByStatusAndTypeOrderByIdDescLimit(Integer status, Integer type, Integer limit) {
//        return super.findByLimit("from RecomEsignPharmacist where status=? and type=? order by id desc", limit, status, type);
//    }
//}
